package com.huc.design.behavior.strategy.casedemo;



/**
 * @author huc
 * @version 1.0
 * @note 上下文
 * @date 2021/10/7 14:48
 */
public class Context {
    private final ICompressStrategy compressStrategy;

    public Context(ICompressStrategy compressStrategy) {
        this.compressStrategy = compressStrategy;
    }

    public void pay(String name,String to, Integer money) {
        this.compressStrategy.pay(name,to, money);
    }
}
